##http://code.google.com/p/libbenchmark
##	libbenchmark
##		--zheng.cuzh@gmail.com
##

base_dir=.
build_dir=$(base_dir)/build
include_dir=$(base_dir)/include
source_dir=$(base_dir)/source


all:	clean built test

built:
	gcc -w -lpthread -I$(include_dir) -o $(build_dir)/benchmark $(source_dir)/* 

built_so:
	gcc -w -lpthread -shared -fPIC -I$(include_dir) -o $(build_dir)/libbenchmark.so $(source_dir)/*

clean:
	rm -f $(build_dir)/*

test:
	$(build_dir)/benchmark -t
